package cn.gp.service.impl;

import cn.gp.entity.User;
import cn.gp.mapper.UserMapper;
import cn.gp.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserServiceImpl
 * @Description TODO
 * @Author He_Guoping
 * @Date 2023/5/21 21:15
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User login(User user) {
        return userMapper.selectByUsername(user);
    }
}
